const routes = [
    {
        path:'/',
        redirect:'/login'
    },
    {
        path:'/login',
        component: ()=>import("../view/Login.vue"),
        name:'login'
    },
    {
        path:'/register',
        component: ()=>import("../view/Register.vue"),
        name:'register'
    },
    {
        path:'/main',
        component: ()=>import("../components/layout/ViewLayout.vue"),
        name:'ViewLayout',
        meta:{
            title:'主页'
        },
        children:[]
    }
]
export default routes;